<div>
	<a href='<?php echo url_for('@homepage') ?>'>Learn vietnamese online </a>
	<?php
		if( isset($coursename ) )
			echo '>' . link_to( $coursename, 'course/show?id='. $sf_request->getParameter('courseid',0) );
		else
			echo "";
	?>
	<!--
	<ul id="qnavlist" >
	<li><p id="qheader" style="border-bottom:1px solid #CCCC00; " ><?php echo $coursename . ' - '. ( isset($rows[0])?$rows[0]->getLevelName():'unknow' ); ?> </p></li>
	<li><?php echo link_to('LevelTest', 'leveltest/index?courseid='.$sf_request->getParameter('courseid',0).'&levelid='. ( isset($rows[0])?$rows[0]->getId():'0' ) ); ?></li>
	<li>Schedule</li>
	<li><?php echo link_to('Syllabus', 'syllabus/index?courseid='.$sf_request->getParameter('courseid',0).'&levelid='. ( isset( $rows[0])?$rows[0]->getId():'0' ) );?></li>
	<li><?php echo link_to('Study Kit', 'levelstudykit/index?courseid='.$sf_request->getParameter('courseid',0).'&levelid='.( isset($rows[0])?$rows[0]->getId():'0' ) );?></li>
	</ul>
	-->
<div>
<div>
    <?php foreach ( $rows as $level): ?>
	<div>
		<p> <?php echo $coursename . ' - '. $level->getLevelName() ?> </p>
		<p> <?php echo $level->getLevelDescription() ?> </p>
		<p> <a href="<?php echo url_for('level/show?id='.$level->getId() . '&courseid=' . $level->getCourseId() ) ?>">Read more</a> 
			<?php echo link_to('SignUp', '@homepage') ?>
		</p>
	</div>
    <?php endforeach; ?>
</div>
<div>
	<?php if ($pager->haveToPaginate()): ?>
	  <?php echo link_to('&laquo;', 'level/index?page='.$pager->getFirstPage()) ?>
	  <?php echo link_to('&lt;', 'level/index?page='.$pager->getPreviousPage()) ?>
	  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
		<?php echo ($page == $pager->getPage()) ? $page : link_to($page, 'level/index?page='.$page) ?>
		<?php if ($page != $pager->getCurrentMaxLink()): ?> - <?php endif ?>
	  <?php endforeach ?>
	  <?php echo link_to('&gt;', 'level/index?page='.$pager->getNextPage()) ?>
	  <?php echo link_to('&raquo;', 'level/index?page='.$pager->getLastPage()) ?>
	<?php endif ?>
</div>
 <!-- <a href="<?php echo url_for('level/new') ?>">New</a> -->
